package com.aj.utils;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;

public class PreferenceUtils {

    public static void setHomesRelationIsFrist(Context context) {
        SharedPreferences preference = context.getSharedPreferences("homesRelationFile", Context.MODE_PRIVATE);
        Editor editor = preference.edit();
        editor.putBoolean("homesRelationFrist", true);
        editor.commit();

    }

    public static boolean getHomesRelationIsFrist(Context context) {
        SharedPreferences preference = context.getSharedPreferences("homesRelationFile", Context.MODE_PRIVATE);
        return preference.getBoolean("homesRelationFrist", false);
    }

}
